@charset "UTF-8";
.loginContainer {
  width: 100vw;
  height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.brandSection {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.brandContent {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.brandTitle {
  margin-bottom: 60px;
}

.brandTitle h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  animation: slideInDown 0.8s ease-out 0.2s both;
}

.brandTitle h2 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.5px;
  animation: slideInDown 0.8s ease-out 0.4s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mainIllustration {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  animation: zoomIn 1s ease-out 0.6s both;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.documentIcon {
  width: 120px;
  height: 160px;
  background: white;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: rotate(-5deg);
  transition: all 0.3s ease;
}

.documentIcon:hover {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.documentIcon::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border-radius: 8px 8px 0 0;
}

.documentIcon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border-radius: 0 0 8px 8px;
}

.documentContent {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkmark {
  color: #10b981;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  animation: bounceIn 0.6s ease-out 1s both;
}

.cross {
  color: #ef4444;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease-out 1.2s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.textLines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.line {
  height: 2px;
  background: #6b7280;
  border-radius: 1px;
  animation: slideInRight 0.6s ease-out 1.4s both;
}

.line:nth-child(1) {
  width: 80%;
  animation-delay: 1.4s;
}

.line:nth-child(2) {
  width: 90%;
  animation-delay: 1.6s;
}

.line:nth-child(3) {
  width: 70%;
  animation-delay: 1.8s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.illustrationRing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cloud1, .cloud2 {
  position: absolute;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
}

.cloud1::before, .cloud2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.cloud1::after, .cloud2::after {
  content: '';
  position: absolute;
  top: -10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.cloud1 {
  bottom: 20%;
  left: 15%;
  animation: float 6s ease-in-out infinite;
}

.cloud2 {
  bottom: 30%;
  left: 25%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.backgroundDots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.formSection {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.formContainer {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.8s ease-out 0.3s both;
  position: relative;
  overflow: hidden;
}

.formContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.6s;
}

.formContainer:hover::before {
  left: 100%;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formTitle {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 32px;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.formTitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.8s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 40px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customInput {
  height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
}

.customInput:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.customInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.customInput::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.customInput:focus::placeholder {
  color: #6b7280;
}

.customInput[placeholder="请输入验证码"] {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
}

.customInput[placeholder="请输入验证码"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.inputIcon {
  color: #6b7280;
  font-size: 16px;
  transition: color 0.3s ease;
}

.customInput:focus + .inputIcon,
.customInput:hover + .inputIcon {
  color: #3b82f6;
}

.passwordToggle {
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passwordToggle:hover {
  color: #3b82f6;
  transform: scale(1.1);
}

.captchaContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
}

.captchaCanvas {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.captchaCanvas:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  transform: scale(1.02);
}

.captchaCanvas:active {
  transform: scale(0.98);
}

.refreshButton {
  height: 48px;
  width: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.refreshButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.refreshButton:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.refreshButton:hover::before {
  left: 100%;
}

.refreshButton:active {
  transform: translateY(0);
}

.refreshButton .anticon {
  font-size: 16px;
}

.loginButton {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loginButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.loginButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.loginButton:hover::before {
  left: 100%;
}

.loginButton:active {
  transform: translateY(0);
}

.loginButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.forgotPassword {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  animation: fadeIn 0.8s ease-out 1s both;
}

.registerLink {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  animation: fadeIn 0.8s ease-out 1.1s both;
}

.linkText {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.linkText:hover {
  color: #1e40af;
  text-decoration: underline;
}

.languageSwitch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.languageButton {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #1e40af;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.languageButton:hover {
  background: white;
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.languageButton .anticon {
  margin-right: 4px;
}

@media (max-width: 768px) {
  .loginContainer {
    flex-direction: column;
  }
  .brandSection {
    flex: none;
    height: 40vh;
    padding: 20px;
  }
  .brandTitle h1 {
    font-size: 24px;
  }
  .brandTitle h2 {
    font-size: 14px;
  }
  .documentIcon {
    width: 80px;
    height: 120px;
  }
  .formSection {
    flex: 1;
    padding: 20px;
  }
  .formContainer {
    padding: 30px 20px;
  }
  .languageSwitch {
    top: 10px;
    right: 10px;
  }
  .languageButton {
    font-size: 12px;
    padding: 4px 8px;
  }
  .languageButton .anticon {
    font-size: 12px;
    margin-right: 2px;
  }
}

:global(.ant-form-item) {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

:global(.ant-form-item):nth-child(1) {
  animation-delay: 0.6s;
}

:global(.ant-form-item):nth-child(2) {
  animation-delay: 0.7s;
}

:global(.ant-form-item):nth-child(3) {
  animation-delay: 0.8s;
}

:global(.ant-form-item):nth-child(4) {
  animation-delay: 0.9s;
}

:global(.ant-form-item-explain-error) {
  font-size: 12px;
  margin-top: 4px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
